package com.ejuornal.service;

import java.util.List;

import com.ejuornal.bean.Page;
import com.ejuornal.bean.Permission;
import com.ejuornal.bean.RolePermission;
import com.ejuornal.bean.vo.PermissionVO;

public interface PermissionService {
    public void add(Permission permission);
    public Page<Permission> find(int current_record, String url, int pgId);
    public boolean delete(int pid);
    public List<Permission> findByRoleId(int roleId);
    public List<Permission> findByNotIntRole(int roleId);
    public boolean addRolePermission(RolePermission rp);
    public List<PermissionVO> findPermissionVO(int roleId);
}
